﻿
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class BaseCommand : Object
{

    /// <summary>
    ///  命令描述
    /// </summary>
    protected string Describe { get; set; }

    /// <summary>
    /// 设置命令描述信息
    /// </summary>
    /// <param name="describe"></param>
    protected BaseCommand(string describe)
    {
        this.Describe = describe;
    }

    /// <summary>
    /// 执行
    /// </summary>
    public abstract void Execute();

    /// <summary>
    /// 撤销
    /// </summary>
    public abstract void Revoke();

}
